/**
* @Author: Zhengfeng.Yao
* @Date:   2017-01-23 14:12:23
* @Last modified by:   Zhengfeng.Yao
* @Last modified time: 2017-02-09 14:48:51
*/

import React, { Component } from 'react';
import { inject, observer } from 'mobx-react';
import { Link } from 'react-router'
import cn from 'classnames'
import Bar from './components/bar'

import 'styles'

const isActive = (key)=>{
  return '#/'+key == window.location.hash||window.location.hash == '#/'&&key == 'common'
}

export default class App extends Component {
  render() {

    return (
      <div className="main">
        <div className="content">
        {
          this.props.children||"空页面"
        }
        </div>
        <div style={{height: '1rem'}}></div>
        <Bar />
      </div>
    );
  }

  componentDidMount() {

  }
}
